package me.sdevil507.systemAssist.systemLog.service;

import me.sdevil507.platform.po.PlatResourcePo;
import me.sdevil507.supports.jpa.PageParamsDTO;
import me.sdevil507.supports.jpa.SortParamsDTO;
import me.sdevil507.systemAssist.systemLog.dto.SystemAccessLogParamsDto;
import me.sdevil507.systemAssist.systemLog.po.SystemAccessLogPo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Set;

public interface SystemAccessLogService {

    /**
     * 分页获取记录
     *
     * @param searchParamsDto 查询DTO
     * @param pageParamsDto   分页DTO
     * @param sortParamsDto   排序DTO
     * @return 分页记录
     */
    Page<SystemAccessLogPo> readAllByPage(SystemAccessLogParamsDto searchParamsDto, PageParamsDTO pageParamsDto, SortParamsDTO sortParamsDto);

    /**
     * 根据id获取po
     *
     * @param id id
     * @return po
     */
    SystemAccessLogPo readById(Long id);

    List<SystemAccessLogPo> readAll(SystemAccessLogParamsDto searchDto, PageParamsDTO pageDto, SortParamsDTO sortDto);

    void add(SystemAccessLogPo systemAccessLogPo);

    List<String> getRecentModule(SystemAccessLogPo systemAccessLogPo);
}

